<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" enctype="multipart/form-data">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('版本号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newversion" class="form-control" name="row[newversion]" type="text" required>
        </div>
    </div>
    <div class="form-group">
        <label for="c-apk" class="control-label col-xs-12 col-sm-2">{:__('APK 文件')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <!-- 文件路径输入框 -->
                <input id="c-apk" class="form-control" size="50" name="row[downloadurl]" type="text" value="{$row.apk_path|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <!-- 上传按钮（关键修改点） -->
                    <span>
                        <button 
                            type="button" 
                            id="faupload-apk" 
                            class="btn btn-danger faupload" 
                            data-input-id="c-apk" 
                            data-mimetype="application/vnd.android.package-archive,.apk" 
                            data-multiple="false"
                        >
                            <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                    </span>
                    <!-- 文件选择按钮 -->
                    <span>
                        <button 
                            type="button" 
                            id="fachoose-apk" 
                            class="btn btn-primary fachoose" 
                            data-input-id="c-apk" 
                            data-mimetype=".apk" 
                            data-multiple="false"
                        >
                            <i class="fa fa-list"></i> {:__('Choose')}
                        </button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-apk"></span>
                
            </div>
            <!-- 上传后的提示信息（可选） -->
            <div class="help-block">仅支持 .apk 格式，文件大小不超过 100MB</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('升级内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content" class="form-control" name="row[content]" type="text" required>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('版本状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('正常'), 'hidden'=>__('异常')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>